package org.twdata.pipeline;

// SAX imports:
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.Locator;
import org.xml.sax.SAXException;
import org.xml.sax.ext.LexicalHandler;

/**  Defines a class that will produce SAX events */
public interface XMLProducer {

    /**
     *  Set the <code>ContentHandler</code> that will receive XML data.
     *
     *@param  consumer               The XML consumer to publish events to
     *@exception  PipelineException  If anything goes wrong
     */
    public void setConsumer(XMLConsumer consumer)
        throws PipelineException;

}

